//动物园！

import java.util.ArrayList;

import Animal.Animal;

public class Zoo {
    public Zoo(ArrayList<Animal> _animalList, ZooManager manager) {
        animalList = _animalList;
        zooManager = manager;
        myDebugShower = new DebugMassgaerShower<Animal>();
    }

    private ArrayList<Animal> animalList;
    private ZooManager zooManager;
    private DebugMassgaerShower<Animal> myDebugShower;

    public void AddAnimal(Animal newAnimal) {
        animalList.add(newAnimal);
    }

    public void ChangeManager(ZooManager newManager) {
        zooManager = newManager;
    }

    public void ShowAnimalListData() {
        myDebugShower.ShowMassage(animalList);
    }
}
